﻿using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Mvc;
using Microsoft.Owin.Security;
using Microsoft.Practices.Unity;

namespace Web.Identity.Core
{
    [Authorize]
    public class IdentityController : AppMvcController
    {
        [Dependency]
        internal IIdentityUserQueryEntry IdentityUserQueryEntry { get; set; }

        [Dependency]
        protected AppUserManager UserManager { get; set; }

        [Dependency]
        protected AppSignInManager SignInManager { get; set; }

        public IAuthenticationManager AuthenticationManager
        {
            get { return HttpContext.GetOwinContext().Authentication; }
        }
    }
}